package com.example.mybatis.service;

import com.example.mybatis.mapper.AccountMapper;
import com.example.mybatis.pojo.Account;

import java.util.List;

/**
 * ClassName:AccountService
 * Package:com.example.mybatis.service
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/12-9:10
 * @Version:v1.0
 */
public interface AccountService {

    //开户
    int save(Account act);

    //销户
    int deleteByActno(String actno);

    //修改账户
    int modify(Account account);

    //查询账户
    Account getByActno(String actno);

    //查询所有账户
    List<Account> getAll();

    //转账业务
    void transfer(String fromActno,String toActno,double moeny);
}
